<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Comparaciones</TITLE>

</HEAD>
<BODY>
<CENTER>
<H2>Comparaciones</H2>
<%
String format = request.getParameter("format");
if ((format != null) && (format.equals("excel"))) {
response.setContentType("application/vnd.ms-excel");
}
else if ((format != null) && (format.equals("word"))) {
response.setContentType("application/msword");
}
else if ((format != null) && (format.equals("power"))) {
response.setContentType("application/vnd.ms-powerpoint");
}
else if ((format != null) && (format.equals("pdf"))) {
response.setContentType("application/pdf");
}
%>
<TABLE BORDER=1>
<TR><TH></TH> <TH>Manzanas<TH>Naranjas
<TR><TH>Primero <TD>2307 <TD>4706
<TR><TH>Segundo<TD>2982 <TD>5104
<TR><TH>Tercero <TD>3011 <TD>5220
<TR><TH>Quinto<TD>3055 <TD>5287
</TABLE>

</CENTER>
http://localhost:8080/jsp/excel.jsp?format=excel

</BODY></HTML>